package com.wenwu.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.wenwu.common.bean.RelicsArchaeological;
import com.wenwu.common.bean.RelicsArchaeologicalExample;
import com.wenwu.common.bean.RelicsArchaeologicalWithBLOBs;
import com.wenwu.common.page.PaginationVO;

public interface RelicsArchaeologicalMapper  extends Dao {
    int countByExample(RelicsArchaeologicalExample example);

    int deleteByExample(RelicsArchaeologicalExample example);

    int deleteByPrimaryKey(Integer archId);

    int insert(RelicsArchaeologicalWithBLOBs record);

    int insertSelective(RelicsArchaeologicalWithBLOBs record);

    List<RelicsArchaeologicalWithBLOBs> selectByExampleWithBLOBs(RelicsArchaeologicalExample example);

    List<RelicsArchaeological> selectByExample(RelicsArchaeologicalExample example);

    RelicsArchaeologicalWithBLOBs selectByPrimaryKey(Integer archId);

    int updateByExampleSelective(@Param("record") RelicsArchaeologicalWithBLOBs record, @Param("example") RelicsArchaeologicalExample example);

    int updateByExampleWithBLOBs(@Param("record") RelicsArchaeologicalWithBLOBs record, @Param("example") RelicsArchaeologicalExample example);

    int updateByExample(@Param("record") RelicsArchaeological record, @Param("example") RelicsArchaeologicalExample example);

    int updateByPrimaryKeySelective(RelicsArchaeologicalWithBLOBs record);

    int updateByPrimaryKeyWithBLOBs(RelicsArchaeologicalWithBLOBs record);

    int updateByPrimaryKey(RelicsArchaeological record);
    
    /**
     * 分页条件查询
     * @param relicsArchaeological
     * @param pageVo
     * @return
     */
    List<RelicsArchaeologicalWithBLOBs> selectListByPage(@Param("relicsArchaeological") RelicsArchaeologicalWithBLOBs relicsArchaeological,@Param("pageVo") PaginationVO pageVo);
    
    /**
	 * 分页查询的所有结果总数量
	 * @param relicsArchaeological
	 * @param pageVo
	 * @return
	 */
	int selectTotalRecord(@Param("relicsArchaeological")RelicsArchaeologicalWithBLOBs relicsArchaeological);

	/**
	 * 根据主键批量删除数据
	 * @param keyList
	 * @return
	 */
	int deleteInfoByKey(List<String> keyList);
}